package com.aiju.cash.ui.member.entity;

import android.text.TextUtils;

import com.aiju.utils.DateUtil;

import java.io.Serializable;
import java.util.List;

/**
 * @author: 佐为
 * @date: 2017-02-20 16:43
 * @version: V1.0
 * @Description: 会员
 */
public class Member implements Serializable {

    private String id;          // 	会员id
    private String phone;       //手机号
    private String name;        //姓名
    private String gender;      //性别 1：男 2：女
    private String birthday;    //生日
    private String province;    //省份
    private String city;        //城市
    private String area;        //区域
    private String address;     //详细地址
    private String remark;      //备注
    private List<MemberCard> cardList; //关联的会员卡


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<MemberCard> getCardList() {
        return cardList;
    }

    public void setCardList(List<MemberCard> cardList) {
        this.cardList = cardList;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getBirthday() {
        if (!TextUtils.isEmpty(birthday)) {
            try {
               return DateUtil.stringToString(birthday);
            } catch (Exception e) {
                return "";
            }
        }
        return "";
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
